# CMakeLists
# Author(s): xuming.Wong <xuming.Wong@gmail.com>
#-----------------------------------------------------------------------------

SET(INC .
	src
	${OGRE_INCLUDE_PATH}
)

FILE(GLOB SRC   
	src/*.cpp
	
	src/Modules/*.cpp
	src/Modules/ProjectedGrid/*.cpp
	src/Modules/RadialGrid/*.cpp
	src/Modules/SimpleGrid/*.cpp
	
	src/Noise/*.cpp
	src/Noise/FFT/*.cpp
	src/Noise/Perlin/*.cpp
)

BUILD_SHARED_LIB(hydrax "${SRC}" "${INC}")

ADD_DEFINITIONS(-D_USRDLL)
ADD_DEFINITIONS(-DHYDRAX_EXPORTS)
ADD_DEFINITIONS(-DHYDRAX_LIB)

TARGET_LINK_LIBRARIES(hydrax ${PQ3D_OGRE_LIBS})

